<template>
  <div style="padding: 10px 15px;background:rgba(9, 19, 33, 0.8);text-align:center;cursor: pointer;" @click="toggleClick">
    <i class="el-icon-d-arrow-left hamburger" v-show="isActive"></i>
    <i class="el-icon-d-arrow-right hamburger" v-show="!isActive"></i>
  </div>
</template>

<script>
export default {
  name: 'Hamburger',
  props: {
    isActive: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    toggleClick () {
      this.$emit('toggleClick')
    }
  }
}
</script>

<style scoped>
.hamburger {
  display: inline-block;
  vertical-align: middle;
  font-size: 20px;
  color: rgba(255,255,255,.65);
}
.hamburger.is-active {
  transform: rotate(180deg);
}
</style>
